<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>方正教务管理系统</title>
<link rel="stylesheet" href="css/public.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<!--头部-->
	<header class="publicHeader">
		<h1>方正教务管理系统</h1>

		<div class="publicHeaderR">
			<p>
				<span>下午好！</span><span style="color: #fff21b"> ${name }</span> ,
				欢迎你！
			</p>
			<a href="login.jsp">退出</a>
		</div>
	</header>
	<!--时间-->
	<section class="publicTime">
		<span id="time">2015年1月1日 11:11 星期一</span> <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
	</section>
	<!--主体内容-->
	<section class="publicMian ">
		<div class="left">
			<h2 class="leftH2">
				<span class="span1"></span>功能列表 <span></span>
			</h2>
			<nav>
				<%@ include file="leftView.jsp"%>
			</nav>
		</div>
		<div class="right">
			<div class="location">
				<strong>你现在所在的位置是:</strong> <span>用户管理页面 >> 用户修改页面</span>
			</div>
			<div class="providerAdd">
				<form action="userUpdate">

					<input type="hidden" name="id" value="${userUpdate.id }">
					<!--div的class 为error是验证错误，ok是验证成功-->
					<div>
						<label for="userName">用户名称：</label> <input type="text"
							name="userName" id="userName" value="${userUpdate.userName }" />
						<span>*</span>
					</div>

					<div>
						<label>用户性别：</label> <select name="gender">
							<!-- <option value="1" <c:if test="${u.gender == billUpdate.providerId }">selected="selected"</c:if>>男</option>
							<option value="2">女</option> -->

							<c:if test="${userUpdate.gender == 1}">
								<option value="1" selected="selected">男</option>
								<option value="2">女</option>
							</c:if>
							<c:if test="${userUpdate.gender == 2}">
								<option value="1">男</option>
								<option value="2" selected="selected">女</option>
							</c:if>
						</select>
					</div>
					<div>
						<label for="data">出生日期：</label> <input type="text" name="data"
							id="data" value="${userUpdate.birthday }" /> <span>*</span>
					</div>
					<div>
						<label for="userphone">用户电话：</label> <input type="text"
							name="userphone" id="userphone" value="${userUpdate.phone }" />
						<span>*</span>
					</div>
					<div>
						<label for="userAddress">用户地址：</label> <input type="text"
							name="userAddress" id="userAddress"
							value="${userUpdate.address }" />
					</div>
					<div>
						<label>用户类别：</label> <input type="radio" name="userlei" value="1"
							<c:if test="${userUpdate.userRole == 1}"> checked="checked"
							</c:if> />管理员
						<input type="radio" name="userlei" value="2"
							<c:if test="${userUpdate.userRole == 2}"> checked="checked"
							</c:if> />经理
						<input type="radio" name="userlei" value="3"
							<c:if test="${userUpdate.userRole == 3}"> checked="checked"
							</c:if> />普通用户
					</div>
					<div class="providerAddBtn">
						<!--<a href="#">保存</a>-->
						<!--<a href="userList.jsp">返回</a>-->
						<input type="submit" value="保存" /> <input type="button"
							value="返回" onclick="history.back(-1)" />
					</div>
				</form>
			</div>

		</div>
	</section>
	<footer class="footer"> Version@Java面向监狱编程从入门到入狱 </footer>
	<script src="js/time.js"></script>

</body>
</html>